import upload from '@/utils/upload'
import request from '@/utils/request'


// 创建Room信息
export function createRoom(data) {
	return request({
		url: '/room/data/create',
		method: 'post',
		data: data
	})
}

export function createZjRoom(data) {
	return request({
		url: '/room/data/createZj',
		method: 'post',
		data: data
	})
}

export function queryRoom(data) {
	return request({
		url: '/room/data/query',
		method: 'post',
		data: data
	})
}

export function autoRecRoom(data) {
	return request({
		url: '/room/data/autoRecRoom',
		method: 'post',
		data: data
	})
}

export function uploadRoom(data) {
	return request({
		url: '/room/data/upload',
		method: 'post',
		data: data
	})
}

export function countRoom(data) {
	return request({
		url: '/room/data/countRoom',
		method: 'post',
		data: data
	})
}

export function countRoomMoney(data) {
	return request({
		url: '/room/data/countRoomMoney',
		method: 'post',
		data: data
	})
}

export function hotRank(data) {
	return request({
		url: '/room/data/hotRank',
		method: 'post',
		data: data
	})
}

export function getHotRank() {
	return request({
		url: '/room/data/hotRank?seed=' + Date.now(),
		method: 'get',
	})
}

export function getHotHzjRank() {
	return request({
		url: '/room/data/hotHzjRank?seed=' + Date.now(),
		method: 'get',
	})
}